class Student
{
	int rollNo;
	String name;
    String dept;
	public void setStudInfo(int r, String nm, String dpt)
	{
		rollNo=r;
		name=nm;
		dept=dpt;
	}
	public void showStudent()
	{
		System.out.println("Roll No.  :"+rollNo);
		System.out.println("Name    :"+name);
		System.out.println("Dept.    :"+dept);
	}
}

class Library extends Student
{
     int bookId;
	 int noOfDays;
	 public void bookissue(int bid, int nds)
	{
		 bookId=bid;
		 noOfDays=nds;
	}
	public void showIssuedBook()
	{
		System.out.println("Book ID :"+bookId);
		System.out.println("No of Days :"+noOfDays);
	}
}


public class Inheritance1
{
	public static void main(String[] args) 
	{
		//Student st=new Student();
		//st.setStudInfo(101,"Raju","CS");
		//st.showStudent();
	
		Library lib=new Library();
		lib.setStudInfo(101,"Raju","CS");
		lib. bookissue(11,5);

        lib.showStudent();
		lib.showIssuedBook();

		
		System.out.println("Thank you!");
	}
}
